package com.community.common.exception;

import com.community.common.result.ResultCodeEnum;

public class NeusoftException extends RuntimeException{
    private Integer code;

    public NeusoftException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public NeusoftException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getMessage());
        this.code = resultCodeEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
